package com.example.mybatis.sqlserver.springbootmybatissqlserver.pojo.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by hzy on 2019/1/4.
 */

public class WebResultBean<T> {
    public Integer code;

    @JsonProperty("Msg")
    public String msg;

    @JsonProperty("Body")
    public T data;

    public void setCodeAndMsg(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
